/* This file is currently associated to an HTML file of the same name and is drawing content from it.  Until the files are disassociated, you will not be able to move, delete, rename, or make any other changes to this file. */

function DisplayTemplate_cc835695dd344854b722c6df5df7421c(ctx) {
    var ms_outHtml = [];
    var cachePreviousTemplateData = ctx['DisplayTemplateData'];
    ctx['DisplayTemplateData'] = new Object();
    DisplayTemplate_cc835695dd344854b722c6df5df7421c.DisplayTemplateData = ctx['DisplayTemplateData'];

    ctx['DisplayTemplateData']['TemplateUrl'] = '~sitecollection\u002f_catalogs\u002fmasterpage\u002f$clientNameWithoutSpaces$\u002fDisplayTemplates\u002fItem_CustomPage_RollupWithSynopsis.js';
    ctx['DisplayTemplateData']['TemplateType'] = 'Item';
    ctx['DisplayTemplateData']['TargetControlType'] = ['SearchResults'];
    this.DisplayTemplateData = ctx['DisplayTemplateData'];

    ctx['DisplayTemplateData']['ManagedPropertyMapping'] = { 'Title': ['Title'], 'Path': ['Path'], 'Synopsis': ['SynopsisOWSMTXT'], 'PublishingImage': ['PublishingImage'], 'LastModifiedTime': ['LastModifiedTime'] };
    var cachePreviousItemValuesFunction = ctx['ItemValues'];
    ctx['ItemValues'] = function (slotOrPropName) {
        return Srch.ValueInfo.getCachedCtxItemValue(ctx, slotOrPropName)
    };

    ms_outHtml.push('', ''
    );
    if (!$isNull(ctx.CurrentItem) && !$isNull(ctx.ClientControl)) {
        var id = ctx.ClientControl.get_nextUniqueId();
        var encodedId = $htmlEncode(id);
        var title = ctx.CurrentItem.Title;
        var path = ctx.CurrentItem.Path;

        var rollupImage = $getItemValue(ctx, "PublishingImage");
        var synopsis = $getItemValue(ctx, "Synopsis");
        ms_outHtml.push(''
        , ''
        , '            <a href="', ctx.CurrentItem.Path, '"><img src="', rollupImage, '" /></a>'
        , '            <a href="', ctx.CurrentItem.Path, '"><h3>', title, '</h3></a>'
        , '            <p>', synopsis, '</p>'
        );
    }
    ms_outHtml.push(''
    , '    '
    );

    ctx['ItemValues'] = cachePreviousItemValuesFunction;
    ctx['DisplayTemplateData'] = cachePreviousTemplateData;
    return ms_outHtml.join('');
}
function RegisterTemplate_cc835695dd344854b722c6df5df7421c() {

    if ("undefined" != typeof (Srch) && "undefined" != typeof (Srch.U) && typeof (Srch.U.registerRenderTemplateByName) == "function") {
        Srch.U.registerRenderTemplateByName("Item_CustomPage_RollupWithSynopsis", DisplayTemplate_cc835695dd344854b722c6df5df7421c);
    }

    if ("undefined" != typeof (Srch) && "undefined" != typeof (Srch.U) && typeof (Srch.U.registerRenderTemplateByName) == "function") {
        Srch.U.registerRenderTemplateByName("~sitecollection\u002f_catalogs\u002fmasterpage\u002f$clientNameWithoutSpaces$\u002fDisplayTemplates\u002fItem_CustomPage_RollupWithSynopsis.js", DisplayTemplate_cc835695dd344854b722c6df5df7421c);
    }

}
RegisterTemplate_cc835695dd344854b722c6df5df7421c();
if (typeof (RegisterModuleInit) == "function" && typeof (Srch.U.replaceUrlTokens) == "function") {
    RegisterModuleInit(Srch.U.replaceUrlTokens("~sitecollection\u002f_catalogs\u002fmasterpage\u002f$clientNameWithoutSpaces$\u002fDisplayTemplates\u002fItem_CustomPage_RollupWithSynopsis.js"), RegisterTemplate_cc835695dd344854b722c6df5df7421c);
}